package com.study.test;

/**
 * @author csc
 * @Date 2023/10/8 15:53
 * @PackageName:com.cscloser.test
 * @ClassName: A
 * @Description: TODO
 * @Version 1.0
 */
public class A {

    public static void main(String[] args) {

        String s = "111"+"222";
        String s2 = new String("111"+"222");
        String intern = s2.intern();
        System.out.println(intern == s);
        System.out.println(s2==s);


    }

}
